﻿using Prism.Common.RegionNames;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using TextFileReaderModule.Views;

namespace TextFileReaderModule.Modules
{
	public class Module : IModule
	{
		private readonly IRegionManager _regionManager;

		public Module( IRegionManager regionManager )
		{
			_regionManager = regionManager;
		}

		public void Initialize()
		{
			_regionManager.RegisterViewWithRegion(
				RegionNames.TextFileReaderRegionName,
				typeof( TextFileReaderView ) );
		}
	}
}
